package kr.jobtc.board;

import android.content.Context;
import android.content.Intent;
import android.view.MenuItem;

public class MenuClass {
	
	public MenuClass(Context cont, MenuItem item)
	{
		int id = item.getItemId();
		Intent tent = null;
		switch(id)
		{
		case R.id.board_view:
			tent = new Intent(cont, ViewActivity.class);
			cont.startActivity(tent);
			break;
		case R.id.board_modify:
			tent = new Intent(cont, ModifyActivity.class);
			cont.startActivity(tent);
			break;
		case R.id.board_input:
			tent = new Intent(cont, InputActivity.class);
			cont.startActivity(tent);
			break;
		case R.id.board_delete:
			tent = new Intent(cont, DeleteActivity.class);
			cont.startActivity(tent);
			break;
		case R.id.board_list:
			tent = new Intent(cont, ListActivity.class);
			cont.startActivity(tent);
			break;
		}
	}

}
